package com.group3.utils;

import java.util.Date;

/**
 * @ClassName NotNull
 * @Author WenhaoChen
 * @Date 2021/6/15 16:49
 **/
public class NotNull {
    public static boolean judge(String value){
        if (value == null){
            return false;
        }else return !value.isEmpty();
    }
    public static boolean judge(Date time){
        return time != null;
    }
    public static  boolean judge(Integer value){
        if (value == null || value == -1){
            return false;
        }else{
            return true;
        }
    }
}
